Add a clearer message that we don't support root via GitHub Test: None Change-Id: Ice9631015e99c20287778d0dade3d97eb4ec4698
diff --git a/gradlew b/gradlew index 68ab9d3..951f96b 100755 --- a/gradlew +++ b/gradlew
@@ -126,6 +126,11 @@ export JAVA_TOOLS_JAR="$APP_HOME/../../prebuilts/jdk/jdk8/$plat-x86/lib/tools.jar" export STUDIO_GRADLE_JDK=$JAVA_HOME +# Warn developers if they try to build top level project without the full checkout +[ ! -d "$JAVA_HOME" ] && echo "You likely checked out the standalone AndroidX git project. + +This type of checkout only supports building a subset of projects, see CONTRIBUTING.md" && exit -1 + # ---------------------------------------------------------------------------- # Determine the Java command to use to start the JVM.